/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.mockexam.special.record.entity;

import org.hibernate.validator.constraints.Length;
import java.math.BigDecimal;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 专项练习记录Entity
 * @author zpp
 * @version 2020-02-17
 */
@Table(name="t_mockexam_special_record", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="special_id", attrName="specialId", label="专项练习标识"),
		@Column(name="type", attrName="type", label="类型"),
		@Column(name="user_id", attrName="userId", label="用户主键"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="answer_id", attrName="answerId", label="答案字段"),
		@Column(name="question_type", attrName="questionType", label="问题类型"),
		@Column(name="question_id", attrName="questionId", label="问题id"),
		@Column(name="score", attrName="score", label="问题得分"),
		@Column(name="post_id", attrName="postId", label="试卷岗位标识"),
		
	}, orderBy="a.update_date DESC"
)
public class AppMockexamSpecialRecord extends DataEntity<AppMockexamSpecialRecord> {
	
	private static final long serialVersionUID = 1L;
	private String specialId;		// 专项练习标识
	private String type;		// 类型
	private String userId;		// 用户主键
	private String answerId;		// 答案字段
	private Integer questionType;		// 问题类型
	private String questionId;		// 问题id
	private BigDecimal score;		// 问题得分
	private String postId;
	
	public String getPostId() {
		return postId;
	}

	public void setPostId(String postId) {
		this.postId = postId;
	}

	public AppMockexamSpecialRecord() {
		this(null);
	}

	public AppMockexamSpecialRecord(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="专项练习标识长度不能超过 50 个字符")
	public String getSpecialId() {
		return specialId;
	}

	public void setSpecialId(String specialId) {
		this.specialId = specialId;
	}
	
	@Length(min=0, max=50, message="类型长度不能超过 50 个字符")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=50, message="用户主键长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=255, message="答案字段长度不能超过 255 个字符")
	public String getAnswerId() {
		return answerId;
	}

	public void setAnswerId(String answerId) {
		this.answerId = answerId;
	}
	
	public Integer getQuestionType() {
		return questionType;
	}

	public void setQuestionType(Integer questionType) {
		this.questionType = questionType;
	}
	
	@Length(min=0, max=50, message="问题id长度不能超过 50 个字符")
	public String getQuestionId() {
		return questionId;
	}

	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}
	
	public BigDecimal getScore() {
		return score;
	}

	public void setScore(BigDecimal score) {
		this.score = score;
	}
	
}